//
//  HWLabel.swift
//  PlayWithProject
//
//  Created by 王昌健 on 2021/7/26.
//

import UIKit

class HWLabel: UILabel {

    class func createLabel(title:String,color:String,font:CGFloat) -> UILabel {
        let label = HWLabel.init()
        label.text = title
        label.font = UIFont.systemFont(ofSize: font)
        label.textColor = UIColor.colorWithHexString(hexString: color)
        label.numberOfLines = 0
        return label
    }
    
    class func createBoldLabel(title:String,color:String,font:CGFloat) -> UILabel {
        let label = HWLabel.init()
        label.text = title
        label.font = UIFont.boldSystemFont(ofSize: font)
        label.textColor = UIColor.colorWithHexString(hexString: color)
        label.numberOfLines = 0
        return label
    }

}
